package com.dong.springboot.web.thymeleaf;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author yangjian19
 * @date 2018/8/8
 */
@Controller
//@RequestMapping("/thymeleaf")
public class PersionControler {

    @RequestMapping("/thymeleaf")
    public String index(Model model) {
        Person person = new Person("YangJian", 18);
        model.addAttribute("person", person);
        return "index";
    }
}
